import NSys from '@/n-sys.js';
const {Vue} = NSys;
NSys.use();

import router from '@/router/index.js';
import * as echarts from 'echarts';
import request from '@/utils/request';
import api from '@/api/index'
import auth from '@/utils/auth';
import store from '@/utils/store';
import '@/assets/css/style.scss';

Object.entries({request,api,store,auth, n:NSys,echarts}).forEach( ([k,v])=> Vue.prototype['$'+k] = v );


![require.context('@/components', true, /\.vue$/)].forEach(importComp => importComp.keys().forEach(k=>{
	let comp;
	try{ comp = importComp(k) }
	catch(e){console.log(e)};
	comp && comp.default && comp.default.name && Vue.component(comp.default.name, comp.default);
}))


Vue.config.errorHandler = function(err, vm, info) {  
	err && console.error(err,vm); 
	info && console.log(info,vm); 
}; 

window.rvm = new Vue({ el: '#app',  router, render: h => h('div',{attrs: {id:'app',  class: 'n-app'}}, [h('router-view',{}, [])] ) });



